package com.gxa.xc.rbac.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;
import java.util.List;

public class Admin {

  private Integer id;
  private String adminName;
  private String adminPwd;
  private Long adminPhone;
  private Integer adminGender;
  private Integer status;
  private Integer isDeleted;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
  private Timestamp createTime;
  private Timestamp updateTime;
  private Timestamp lastLoginTime;

  /**
   * 管理员所拥有的角色
   */
  private List<Role> roles;


  public Admin() {
  }

  public List<Role> getRoles() {
    return roles;
  }

  public void setRoles(List<Role> roles) {
    this.roles = roles;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getAdminName() {
    return adminName;
  }

  public void setAdminName(String adminName) {
    this.adminName = adminName;
  }


  public String getAdminPwd() {
    return adminPwd;
  }

  public void setAdminPwd(String adminPwd) {
    this.adminPwd = adminPwd;
  }


  public Long getAdminPhone() {
    return adminPhone;
  }

  public void setAdminPhone(Long adminPhone) {
    this.adminPhone = adminPhone;
  }


  public Integer getAdminGender() {
    return adminGender;
  }

  public void setAdminGender(Integer adminGender) {
    this.adminGender = adminGender;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public Integer getIsDeleted() {
    return isDeleted;
  }

  public void setIsDeleted(Integer isDeleted) {
    this.isDeleted = isDeleted;
  }


  public Timestamp getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Timestamp createTime) {
    this.createTime = createTime;
  }


  public Timestamp getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Timestamp updateTime) {
    this.updateTime = updateTime;
  }


  public Timestamp getLastLoginTime() {
    return lastLoginTime;
  }

  public void setLastLoginTime(Timestamp lastLoginTime) {
    this.lastLoginTime = lastLoginTime;
  }


  @Override
  public String toString() {
    return "Admin{" +
            "id=" + id +
            ", adminName='" + adminName + '\'' +
            ", adminPwd='" + adminPwd + '\'' +
            ", adminPhone=" + adminPhone +
            ", adminGender=" + adminGender +
            ", status=" + status +
            ", isDeleted=" + isDeleted +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", lastLoginTime=" + lastLoginTime +
            ", roles=" + roles +
            '}';
  }
}
